import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const system = {
  path: '/system',
  name: 'System',
  component: LAYOUT,
  redirect: '/system/account',
  meta: {
    orderNo: 2000,
    icon: 'ion:settings-outline',
    title: t('routes.demo.system.moduleName'),
  },
  children: [
    {
      path: 'account',
      name: 'AccountManagement',
      meta: {
        title: '用户管理',
        //ignoreKeepAlive: false,
      },
      component: () => import('@/views/system/account/index.vue'),
    },
    {
      path: 'menu',
      name: 'MenuManagement',
      meta: {
        title: '菜单管理',
        //ignoreKeepAlive: true,
      },
      component: () => import('@/views/system/menu/index.vue'),
    },
    {
      path: 'group',
      name: 'AdminGroup',
      meta: {
        title: '权限组',
        //ignoreKeepAlive: true,
      },
      component: () => import('@/views/system/role/index.vue'),
    },
  ],
};

export default system;
